<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<script th:src="@{/statics/未压缩版.js}" type="text/javascript"></script>
<script th:src="@{/statics/js/ceshi.js}" type="text/javascript"></script>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table{
            border: 1px solid #CFD2D7;
            text-align: center;
            margin-left: 10px;
            margin-top: 10px;
        }
        th{
            width: 300px;
            border: 1px solid black;
            border-left: none;
            border-top: none;
            background-color:#F5F7FA ;
        }
        td{
            width: 300px;
            border: 1px solid black;
            border-left: none;
            border-bottom: none;
            margin: 0;
            padding: 0;
        }
        .search {
            margin-left: 760px;
            margin-top: 50px;
            margin-bottom: 50px;
        }
        .f3{
            margin-top: 20px;
            margin-left: 760px;
        }
    </style>
</head>
<body>
<div class="table">
    <div class="fenye" th:object="${standard12}">
        <div class="search">
            <form method="get" th:action="@{/standard/limit}">
                <input type="hidden" id="totalPage" th:value="*{totalPage}" >
                &nbsp;&nbsp;<span class="f1">用户名：</span> <input type="text" name="zhname" id="zhname" th:value="${zhname}">&nbsp;
                <input type="submit" name="searchbutton" value="提交检索">&nbsp;
                <input type="button" id="add" value="新增标准">
                <input type="button" id="del" value="删除标准">
            </form>
        </div>

        <table>
            <tr>
                <th><input type="checkbox" name="fx"></th>
                <th>标准号</th>
                <th>中文名称</th>
                <th>版本</th>
                <th>关键字</th>
                <th>发布日期</th>
                <th>实施日期</th>
                <th>操作</th>
            </tr>
            <tr th:each="standardinf:*{data}">
                <td><input type="checkbox" id="sc"></td>
                <td th:text="${standardinf.stdNum}"></td>
                <td th:text="${standardinf.zhname}"></td>
                <td th:text="${standardinf.version}"></td>
                <td th:text="${standardinf.keys}"></td>
                <td th:text="${#dates.format(standardinf.releaseDate,'yyyy-MM-dd')}"></td>
                <td th:text="${#dates.format(standardinf.imolDate,'yyyy-MM-dd')}"></td>
                <td>
                    <a th:href="@{'/standard/downLoad?id='+${standardinf.id}}">下载</a>
                    <a th:href="@{'/standard/toUpdate?id='+${standardinf.id}}">修改</a>
                    <a th:href="@{'/standard/toDel?id='+${standardinf.id}}">删除</a>

                </td>
            </tr>
        </table>
        <nav class="selectPage" th:if="*{totalPage>0}">
            <div>
                <div class="f3">
                    <span th:if="*{currentPageNo>1}">
                     <a href="/standard/limit?currentPageNo=1">首页</a>
                    <a th:href="@{'/standard/limit?currentPageNo='+*{currentPageNo - 1}}">上一页</a>
                </span>

                    <span th:if="*{currentPageNo<totalPage}">
                    <a th:href="@{'/standard/limit?currentPageNo='+*{currentPageNo + 1}}">下一页</a>
                    <a th:href="@{'/standard/limit?currentPageNo='+*{totalPage}}">尾页</a>
                    </span>
                    当前<span th:text="'&nbsp;&nbsp;'+${standard12.currentPageNo}+'&nbsp;&nbsp;'" class="f2"></span>页
                    </span>
                    共<span th:text="${standard12.totalPage}"></span>页,
                    共<span th:text="${standard12.totalConut}"></span>条记录
                </div>
            </div>
        </nav>
    </div>

</div>
</body>
</html>